package com.topisv.tms.entity.sms;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.topisv.tms.entity.Customers;
import com.topisv.tms.entity.IdEntity;

/**
 * 短信账户
 */
@Entity
@Table(name = "sms_account")
public class SmsAccount extends IdEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private Customers customer;
	private String customerCode;
	private Integer smsCount;
	private Integer sendedCount;
	private Double balance;
	private Double totalFee;
	private String status;
	private String serverPoint;
	
	public String getServerPoint() {
		return serverPoint;
	}
	public void setServerPoint(String serverPoint) {
		this.serverPoint = serverPoint;
	}
	@ManyToOne
	@JoinColumn(name="customer_id")
	public Customers getCustomer() {
		return customer;
	}
	public void setCustomer(Customers customer) {
		this.customer = customer;
	}
	public String getCustomerCode() {
		return customerCode;
	}
	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}
	public Integer getSmsCount() {
		return smsCount;
	}
	public void setSmsCount(Integer smsCount) {
		this.smsCount = smsCount;
	}
	public Integer getSendedCount() {
		return sendedCount;
	}
	public void setSendedCount(Integer sendedCount) {
		this.sendedCount = sendedCount;
	}
	public Double getBalance() {
		return balance;
	}
	public void setBalance(Double balance) {
		this.balance = balance;
	}
	public Double getTotalFee() {
		return totalFee;
	}
	public void setTotalFee(Double totalFee) {
		this.totalFee = totalFee;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
}